package com.zhs.xyzsdk.editors.token;

import com.zhs.javacc.Token;
import com.zhs.javacc.XYZParserConstants;

public class CommonToken  {

	private Token token;
	private int startIndex;
	private int stopIndex;
	
	public CommonToken(Token token, int startIndex,int stopIndex) {
		this.token=token;
		this.startIndex=startIndex;
		this.stopIndex=stopIndex;
	}

	public static CommonToken EOF_TOKEN = new CommonToken(new Token(XYZParserConstants.EOF),0,0);

	public int getStartIndex() {
		return startIndex;
	}

	public int getStopIndex() {
		return stopIndex;
	}

	public Token getToken() {
		return token;
	}

	public void setToken(Token token) {
		this.token = token;
	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public void setStopIndex(int stopIndex) {
		this.stopIndex = stopIndex;
	}

}
